package com.nuvsoft.android.nuvgamenet;

import java.util.List;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;


public class GameLobbyListAdapter extends ArrayAdapter<GameLobby> {

	private List<GameLobby> items;
	private Context c;

	public GameLobbyListAdapter(Context context, int textViewResourceId,
			List<GameLobby> lobbies) {
		super(context, textViewResourceId, lobbies);
		this.c = context;
		this.items = lobbies;
	}

	@Override
	public View getView(int position, View convertView, ViewGroup parent) {
		GameLobby o = items.get(position);
		return o.getListView(c);
	}
}
